package po.emp;

import java.util.Objects;

/**
 * 职位
 * @author admin
 *
 */
public class Job {
	private int jobId;
	private String jobName;
	private boolean deleteFlag;  //删除标记，false没被删除
	public Job() {
		super();
	}
	public Job(int jobId, String jobName, boolean deleteFlag) {
		super();
		this.jobId = jobId;
		this.jobName = jobName;
		this.deleteFlag = deleteFlag;
	}
	public int getJobId() {
		return jobId;
	}
	public void setJobId(int jobId) {
		this.jobId = jobId;
	}
	public String getJobName() {
		return jobName;
	}
	public void setJobName(String jobName) {
		this.jobName = jobName;
	}
	public boolean isDeleteFlag() {
		return deleteFlag;
	}
	public void setDeleteFlag(boolean deleteFlag) {
		this.deleteFlag = deleteFlag;
	}
	@Override
	public int hashCode() {
		return Objects.hash(deleteFlag, jobId, jobName);
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Job other = (Job) obj;
		return deleteFlag == other.deleteFlag && jobId == other.jobId && Objects.equals(jobName, other.jobName);
	}
	@Override
	public String toString() {
		return "Job [jobId=" + jobId + ", jobName=" + jobName + ", deleteFlag=" + deleteFlag + "]";
	}
}

